package com.example;

import xyz.lwm.lazycat.beans.Application;
import xyz.lwm.lazycat.beans.Beans;
import xyz.lwm.lazycat.mybatisflex.MapperScan;

@MapperScan("com.example.mapper")
public class ExampleApp {

    public static void main(String[] args) {
        Application app = new Application();
        // 重命名 bean name, 防止某些类同名, 导致冲突
        app.addBeanRenamer(design ->
                design.getType().getPackage().getName() + "." + design.getName());
        app.start();
        Beans beans = app.getBeans();
        System.out.println(beans);
    }

}
